﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CF.aspx.cs" Inherits="mendoctor_CF" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body style="height:450px;margin:0;padding:0;">
    <form id="form1" runat="server">
    <div style="margin:0 auto;margin-top:10px;text-align:center;width:800px;height:500px;">
        <table border="1" style="background:#f8eee1">
            <tr style="width:800px;height:40px">
                <td style="width:300px"><asp:Label runat="server" ID="label1" Text="选择查询字段"></asp:Label></td>
                <td style="width:200px"><asp:DropDownList runat="server" ID="DropDownList1" Width="100px" Font-Size="20px">
                    <asp:ListItem>就诊卡号</asp:ListItem>
                    <asp:ListItem>姓名</asp:ListItem>
                    <asp:ListItem>挂号医生</asp:ListItem>
                    <asp:ListItem>挂号科室</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width:300px"><asp:TextBox runat="server" ID="TextBox1" Width="250px" Font-Size="20px" MaxLength="10"></asp:TextBox></td>
            </tr>
            <tr style="text-align:center;height:50px">
                <td colspan="10">
                    <asp:Button runat="server" ID="ButtonOK" Text="确定" Font-Size="20px" OnClick="ButtonOK_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button runat="server" ID="ButtonReset" Text="重置" Font-Size="20px" OnClick="ButtonReset_Click" />
                </td>
            </tr>
        </table>
        <br />
         <asp:GridView runat="server" ID="GridView1" AllowPaging="true" PageSize="8" AutoGenerateColumns="false" OnRowEditing="GridView1_RowEditing"
            OnRowDeleting="GridView1_RowDeleting"  OnPageIndexChanging="GridView1_PageIndexChanging" Width="800px">
            <Columns>
                <asp:CommandField ShowEditButton="True" ItemStyle-Width="50px" />
                <asp:CommandField ShowDeleteButton="True" ItemStyle-Width="50px" />
                <asp:BoundField DataField="ID" HeaderText="ID号" ReadOnly="true" ItemStyle-Width="50px" />
                <asp:BoundField DataField="ID_JZ" HeaderText="就诊卡号" ReadOnly="true" ItemStyle-Width="100px" />
                <asp:BoundField DataField="Name" HeaderText="姓名" ReadOnly="true" ItemStyle-Width="100px" />
                <asp:BoundField DataField="Sex" HeaderText="性别" ItemStyle-Width="60px" />
                <asp:BoundField DataField="Age" HeaderText="年龄" ReadOnly="true" ItemStyle-Width="100px" />
                <asp:BoundField DataField="Dsubject" HeaderText="挂号科室" ItemStyle-Width="160px" />
                 <asp:BoundField DataField="Dname" HeaderText="挂号医生" ItemStyle-Width="160px" />
            </Columns>
            <HeaderStyle BackColor="#ff9966" />
        </asp:GridView>
        <asp:Label runat="server" ID="Label2"></asp:Label>
    </div>
    </form>
</body>
</html>
